package com.lx;

public class teacher {
    String name;

    public String getName() {
        return name;
    }

    public teacher() {
    }

    public void setName(String name) {
        this.name = name;
    }

    public teacher(String name) {
        this.name=name;
    }




    public static void main(String[] args) {
        Student stu=new Student("小明",14,"数学");
        teacher tc=new teacher("张老师");
        System.out.println(tc.getName()+"的学生"+stu.getName());
    }
}
